package com.propertypoint.service.business;

import com.propertypoint.persitence.dao.impl.RegistrationDAO;
import com.propertypoint.persitence.dao.impl.RegistrationDAOImpl;
import com.propertypoint.presentation.model.Agent;
import com.propertypoint.presentation.model.BaseUser;
import com.propertypoint.service.general.RegistrationService;

public class RegistrationServiceImpl implements RegistrationService {
	
	private RegistrationDAO registrationDAO=new RegistrationDAOImpl();
	@Override
	public void register(BaseUser user) throws Exception {
		Agent agent=(Agent)user;
		registrationDAO.registerAgent(agent);
		System.out.println("User Registered");
		
	}
	@Override
	public void updateProfilePicture(Agent agent) throws Exception {
		 
		registrationDAO.updateProfilePicture(agent); 
		System.out.println("Profile Picture Updated");
	}

}
